package com.wwe.kotlinstudy.dm.fourteen;

/**
 * @name KotlinStudy
 * @package name：com.wwe.kotlinstudy.dm.fourteen
 * @anthor DavidZhang
 * @time 2018/5/25 10:20
 * @class describe
 */
public class Test {

    public static void main(String[] args) {
        MyHandler h1 = new MyHandler("h1");
        MyHandler h2 = new MyHandler("h2");
        MyHandler h3 = new MyHandler("h3");
        MyHandler h4 = new MyHandler("h4");
        h3.setHandler(h4);
        h2.setHandler(h3);
        h1.setHandler(h2);
        h1.operator();
    }
}
